//输入一个数字变为二进制数

#include <stdio.h>
#include <math.h>
int main(){
	int num = 0;
	int bit = 0;
	int sum = 0;
	printf("输入一个数字:");
	scanf("%d",&num);
	for(int i = 0 ; num > 0 ; i++){
		bit = num % 2;
		num /= 2;
		sum += bit * pow (10,i);
	}
	printf("%d\n",sum);

	return 0;
}
